<table class="bordered" width="770">
    <thead>
    <tr>
        <th><a href="?page=supplier_list&action=supplier_list_addnew">Add New</a></th>
    </tr>
    </thead>
    <tr>
        <form action="" method="post" name="frmsupplier" id="frmsupplier">
            <td colspan="2">Customer Name:&nbsp;&nbsp;&nbsp;&nbsp;
              <input type="text" name="txtsupplier" id="txtsupplier" value="<?php echo @$supplier=$_REQUEST['txtsupplier'];?>" onchange="frmSubmit('frmsupplier','index.php?page=supplier_list&action=supplier_list');" />  <input type="submit" name="btnsubmit" id="btnsubmit" value="Search"  /> </td>
        </form>
    </tr>
    <tr>
    	<?php 
			if(@$errors!=""){
				echo " <td colspan=\"3\"><span class='red'>". @$errors."</span></td>";
			}else{
				if(isset($_REQUEST['msgStatus']))
					echo " <td colspan=\"3\"><span class='red'>". $_REQUEST['msgStatus'].@$_REQUEST['one']."</span></td>";
			 }
			?>
    </tr>
</table>
<table class="bordered" width="770">
    <thead>
    <tr>
        <th>#</th>        
        <th>Supplier Name</th>
        <th>Address</th>
        <th>Contact1</th>
        <th>Contact2</th>
        <th>Action</th>
    </tr>
    </thead>
    <?php
		@$supplier=$_REQUEST['txtsupplier'];
		if($supplier==""){
			include("search_supplier/default.php");
		}else{
			include("search_supplier/search_supplier.php");
		}
    ?>